package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.workbench.domain.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerService {

    //保存创建的客户
    int saveCreateClue(Customer customer);

    //通过分页查询数据
    List<Customer> queryCustomerByConditionForPage(Map<String,Object> map);

    //根据条件查询客户的总条数
    int queryCountOfCustomerByCondition(Map<String,Object> map);

    //根据id查询客户的信息
    Customer queryCustomerById(String id);

    //保存修改的客户信息
    int saveEditCustomer(Customer customer);

    //根据ids批量删除客户
    int deleteCustomerByIds(String[] ids);

    //查询所有的客户
    List<Customer> queryAllCustomer();

    //根据关键字查询客户表中所有含有该关键字的名称
    List<String> queryCustomerNameByName(String name);
}
